package model

import (
	"time"
)

type AuCarReturnLog struct {
	Id               int       `xorm:"not null pk autoincr INT(11)"`
	OrderId          int       `xorm:"not null unique INT(11)"`
	Sid              int       `xorm:"not null INT(11)"`
	CarId            int       `xorm:"not null INT(11)"`
	DeliveStore      int       `xorm:"not null SMALLINT(3)"`
	RefuelDemand     float32   `xorm:"not null default 0.00 FLOAT(10,2)"`
	DriverName       string    `xorm:"not null VARCHAR(128)"`
	DriverCompany    string    `xorm:"not null VARCHAR(255)"`
	DriverPhone      string    `xorm:"not null VARCHAR(30)"`
	DepartTime       time.Time `xorm:"not null DATETIME"`
	Procedure        string    `xorm:"not null VARCHAR(100)"`
	Carkey           int       `xorm:"not null SMALLINT(3)"`
	Invoice          float32   `xorm:"not null default 0.00 FLOAT(10,2)"`
	ProceduresUpload string    `xorm:"not null VARCHAR(100)"`
	ReturnRemark     string    `xorm:"not null VARCHAR(255)"`
	Status           string    `xorm:"not null default '0' VARCHAR(255)"`
	ArrivalTime      time.Time `xorm:"not null DATETIME"`
	ArrivalRemark    string    `xorm:"not null VARCHAR(255)"`
	CreateTime       time.Time `xorm:"not null DATETIME"`
}
